home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000416_fdc@columbia.edu_Tue Nov 18 08:58:47 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: using telephone keys to acknowledge a call?
Date: 18 Nov 2003 13:57:49 GMT
Organization: Columbia University
Lines: 59
Message-ID: <slrnbrk9at.2qp.fdc@sesame.cc.columbia.edu>
References: <e880768d.0311180014.28b1d9c3@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1069163869 16973 128.59.59.56 (18 Nov 2003 13:57:49 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 18 Nov 2003 13:57:49 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14672
In article <e880768d.0311180014.28b1d9c3@posting.google.com>,
Klaus-Peter Boden wrote:
: I'm trying to build the following 'scenario':
: I have a gsm modem (Falcom A2D, with a German Telecom D1 SIM card)
: which is connected through a serial line to a linux box. With kermit
: (700196, Debian Linux 2.4.18) I'm able to connect to the modem, input
: the PIN, getting network registration status, network field strength
: and so on (with special AT commands) and I'm able to dial out to other
: mobile phones or to conventional telephone network.
: So far, I'm happy ;-)
:
: What I would like to have is, that the called person can use it's
: phone keys, enter a combination of for example '#42' and use this, to
: 'acknowledge' that he/she had received the call and based on that,
: doing further logic in the kermit script, eg. call another number or
: trying 3 more times if he did'nt answer, then sending SMS,... and so
: on, or using different keys resulting in different 'actions'
:
: The whole thing will then be integrated in the big brother network and
: system monitor framework (www.bb4.com)
:
: So what I would like to ask is, if this possible using kermit and if
: so, some hints about how to do this, and if not :-(, some hints for
: alternative linux software, which can do that?
:
A modem that uses the AT command set, or any other text-based command
set, is simply a character device to Kermit. In Kermit, if you enter
CONNECT (terminal) mode, then whatever you type at the keyboard is sent
out the serial port to the device. The only hint is that first you might
need to tell Kermit to:
set carrier-watch off
in case you need to communicate with the modem's command processor directly
when there is no Carrier Detect signal from the modem,
But a modem is not the same as a telephone, and characters from the serial
port are not the same as telephone buttons. Therefore you must use the
modem command that simulates Tone dialing, which is ATDT. So, for example,
to simulate '#42' you would type "ATDT#42" and then press the Enter or
Return key.
As to scripting, you can get an introduction here:
http://www.columbia.edu/kermit/ckscripts.html
In this case, it's a matter of knowing when to send the ATDT commands.
Kermit can only work with characters to and from the device. It can't
"hear" tones, beeps, bongs, or voice instructions. But sometimes the
modem can -- for example, some modems have a "wait for bong" command:
ATDT$#42
You'll have to read your modem manual to find out what is supported by
your modem. As long as text comes out of the modem to indicate what is
happening, you can script interactions reliably. Otherwise, you'll have
to insert pauses to wait until it is safe to send the next command.
- Frank